package heima3_2.cn.osc.ui.activity;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.View;

import net.oschina.app.R;

import java.util.ArrayList;
import java.util.List;

import heima3_2.cn.osc.base.OurTabBaseActivity;
import heima3_2.cn.osc.presenter.ExerciseRecentlyPresenter;
import heima3_2.cn.osc.ui.activity_fragment.HotActivityFragment;
import heima3_2.cn.osc.ui.activity_fragment.RecentlyActivityFragment;
import heima3_2.cn.osc.ui.adapter.ExerciseRecentlyAdapater;
import heima3_2.cn.osc.ui.view.AutoLoadListView;


/**
 * Created by emily on 2017/1/14.
 */
public class ExerciseActivity extends OurTabBaseActivity {
    //找到listView

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);




    }

    String[] mTitle = new String[]{"近期活动", "热门活动"};

    @Override
    protected String[] getTitleArray() {
        return mTitle;
    }

    @Override
    protected List<Fragment> getFragmentList() {
        List<Fragment> fragment = new ArrayList<>();
        fragment.add(new RecentlyActivityFragment());
        fragment.add(new HotActivityFragment());
        return fragment;
    }

    @Override
    protected String getTitleText() {

        return "活动";
    }
}
